package com.boarsoft.boar.common;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.boarsoft.bean.LogonI;
import com.boarsoft.boar.sys.entity.SysFunc;

public class Logon implements LogonI, Serializable {
	private static final long serialVersionUID = 5296314591503337832L;

	/** user id */
	protected String id;
	/** user code */
	protected String code;
	protected String email;
	protected String name;
	protected String corpId;
	protected String deptId;
	protected short type;
	protected String token;

	protected List<SysFunc> funcs = new ArrayList<SysFunc>();

	// -------------------------

	@Override
	public String getCode() {
		return code;
	}

	@Override
	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String getEmail() {
		return email;
	}

	@Override
	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getCorpId() {
		return corpId;
	}

	@Override
	public void setCorpId(String corpId) {
		this.corpId = corpId;
	}

	@Override
	public String getDeptId() {
		return deptId;
	}

	@Override
	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public List<SysFunc> getFuncs() {
		return funcs;
	}

	public void setFuncs(List<SysFunc> funcs) {
		this.funcs = funcs;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public short getType() {
		return type;
	}

	public void setType(short type) {
		this.type = type;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
}